import request from '@/utils/request'

// 查询地址码列表
export function listWmsStock(query, pageReq) {
    return request({
        url: '/wms/stock/list',
        method: 'post',
        data: query,
        params: pageReq
    })
}

// 查询地址码详细
export function getWmsStock(id) {
    return request({
        url: '/wms/stock/' + id,
        method: 'get'
    })
}

// 新增地址码
export function addWmsStock(data) {
    return request({
        url: '/wms/loader',
        method: 'post',
        data: data
    })
}

// 修改地址码
export function updateWmsStock(data) {
    return request({
        url: '/wms/loader',
        method: 'put',
        data: data
    })
}

// 删除地址码
export function delWmsStock(id) {
    return request({
        url: '/wms/stock/' + id,
        method: 'delete'
    })
}

// 导出地址码
export function exportWmsStock(query) {
    return request({
        url: '/wms/stock/export',
        method: 'get',
        params: query
    })
}
